<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;

/**
 * Class Family.
 *
 * @package namespace App\Models;
 */
class Family extends BaseModel implements Transformable
{
    use TransformableTrait;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['staff_id', 'id_card', 'name', 'sex', 'age', 'relationship', 'dorm_type', 'phone', 'status', 'remark'];

    public function staff()
    {
        return $this->belongsTo(Staff::class);
    }
}
